package com.tjetc.dao;

import com.tjetc.domain.Notes;
import com.tjetc.utils.PageInfo;

import java.sql.SQLException;
import java.util.List;

public interface NotesDao {

    void firstAdd(Notes notes) throws SQLException;

    void add(Notes notes) throws SQLException;

    int getCount(int nid) throws SQLException;

    List<Notes> list(PageInfo<Notes> pageInfo,int nid) throws SQLException;

    List<Notes> listMyNotes(int nid) throws SQLException;

    Notes findByNid(int id) throws SQLException;

    void delNotes(int uid) throws SQLException;
}
